﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace Xqsys.BLL
{
     public class FriendLink
    {
        /// <summary>
        /// 友情链接的添加
        /// </summary>
        /// <param name="friendLink"></param>
        /// <returns></returns>
        public bool AddFriendLink(MODEL.FriendLink friendLink)
        {
            return new DAL.FriendLink().AddFriendLink(friendLink);
        }
        /// <summary>
        /// 友情链接的删除
        /// </summary>
        /// <param name="friendid"></param>
        /// <returns></returns>
        public bool deleteFriendLink(int friendid)
        {
            return new DAL.FriendLink().deleteFriendLink(friendid);
        }
        /// <summary>
        /// 更新友情链接
        /// </summary>
        /// <param name="friendLink"></param>
        /// <returns></returns>
        public bool UpdateFriendLink(MODEL.FriendLink friendLink)
        {
            return new DAL.FriendLink().UpdateFriendLink(friendLink);
        
        }
        /// <summary>
        /// 友情链接的查找
        /// </summary>
        /// <param name="friendid"></param>
        /// <returns></returns>
        public DataSet SelectFriendLink()
        {
            return new DAL.FriendLink().SelectFriendLink();
        }
    }
}
